package com.wondertek.poms.dao.po;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author chenjijiang
 * @description
 */
@Data
@Entity
@Table(name = "SECOND_CLASSIFY")
@DynamicUpdate
@DynamicInsert
@Proxy(lazy = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SecondClassify implements Serializable {
	private static final long serialVersionUID = 4871385264861259811L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "SECOND_CLASSIFY_SEQ")
	@SequenceGenerator(name = "SECOND_CLASSIFY_SEQ", allocationSize = 1, sequenceName = "SECOND_CLASSIFY_SEQ")
	private Long id;
	@Column(name="CONTENT_ID")
	private String contentId;
	@Column(name="CLASSIFY_KEY")
	private String classifyKey;
	@Column(name="CLASSIFY_VALUE")
	private String classifyValue;
}
